package cn.ulc.socket.weapp.controller;

import cn.ulc.common.util.Result;
import cn.ulc.socket.weapp.service.CouponServ;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/wechat/coupon")
public class CouponController {

    @Autowired
    CouponServ couponServ;

    @GetMapping("/findNewUserCoupon")
    public Result findNewUserCoupon(){
        return Result.success(couponServ.findNewUserCoupon());
    }
}
